<?php
/* @var $this ResidentController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Export Residents',
);

/*
$this->menu=array(
	array('label'=>'Create Resident', 'url'=>array('create')),
	array('label'=>'Manage Resident', 'url'=>array('admin')),
);
 */
?>

<h1>Export Residents</h1>

<?php

?>

<table>
<thead>
<tr>
  <th>ID</th>
  <th>Name</th>
  <th>Matric No.</th>
  <th>Gender</th>
  <th>Classification</th>
  <th>Nationality</th>
  <th>Room</th>
  <?php foreach($ccaList as $cca) : ?>
  <th><?php echo $cca->name; ?></th>
  <?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php $this->widget('zii.widgets.CListView', array(
  'dataProvider'=>$dataProvider,
  'itemView'=>'_view',
  'viewData'=>array(
      'ccaList'=>$ccaList,
    ),
  )); ?>
</tbody>
</table>
